package com.ziyun.pop.modules.capital.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ziyun.pop.modules.capital.dao.MerchantApplyCashItemsDao;
import com.ziyun.pop.modules.capital.entity.MerchantApplyCashItemsEntity;
import com.ziyun.pop.modules.capital.service.MerchantApplyCashItemsService;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service("merchantApplyCashItemsService")
public class MerchantApplyCashItemsServiceImpl extends ServiceImpl<MerchantApplyCashItemsDao, MerchantApplyCashItemsEntity> implements MerchantApplyCashItemsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<MerchantApplyCashItemsEntity> page = (Page<MerchantApplyCashItemsEntity>) this.page(
                new Query<MerchantApplyCashItemsEntity>(params).getPage(),
                new QueryWrapper<MerchantApplyCashItemsEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<MerchantApplyCashItemsEntity> selectApplyCashItemList(Integer id) {
        return this.baseMapper.selectApplyCashItemList(id);
    }

}
